package com.itheima_01.day06;

public class KuoZhanZuoYe_01 {
    public static void main(String[] args) {
        printChengFaBiao();
    }
    //打印九九乘法表
    public static void printChengFaBiao(){
        System.out.println();
        System.out.println("九九乘法表如下：");
        System.out.println();
        int num = 9;
        for (int i = 1; i <= num; i++) {
            for (int j = 1; j <= i; j++) {
                //因为九九乘法表是一行一行打印的，外层循环i代表着每一行的行数
                //内层循环负责打印列
                System.out.print(j + "*" + i + "=" + i * j + "\t");
            }
            System.out.println();
        }
    }
}
